package org.neurone.session.impl;

import org.neurone.application.ApplicationFace;
import org.neurone.application.impl.ApplicationFaceLocalFactory;
import org.neurone.session.ApplicationSession;
import org.neurone.session.SessionHive;

public class ApplicationSessionLocal implements ApplicationSession {
	private ApplicationFaceLocalFactory applicationFaceLocalFactory;
	
	@Override
	public String createSessionToken(String targetURL, String applicationKey, String token) {
		ApplicationFace applicationFace = applicationFaceLocalFactory.getNewApplicationFace(applicationKey);
		
		return applicationFace.getEntryURL(targetURL, token);
	}

}
